package June.polyparameter;

public class manager extends Employee {
    private double bonus;

    public manager(String name, double m_salary, double bonus) {
        super(name, m_salary);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public double getAnnul() {
        return 12 * getM_salary() + bonus;
    }

    public void manage() {
        System.out.println(getName() + "经理在办公室办公");
    }
}
